package kz.kstu.aecdemo.business.entity.security;

import kz.kstu.aecdemo.business.entity.CommonEntityConstant;

import javax.persistence.*;
import java.math.BigInteger;

/**
 * @author Filipp_Stankevich
 *         created: 05.02.12 18:14
 */

@NamedQueries({
        @NamedQuery(name = CommonEntityConstant.FIND_EC_ACCOUNT_BY_LOGIN,
                query = "select a from ECAccount a where a.login = :login")
})

@Entity
@Table(name = "EC_ACCOUNT")
public class ECAccount extends AbstractAccount {

    private BigInteger x;
    private BigInteger y;
    private BigInteger authenticationNumber;

    @Column(name = "X")
    public BigInteger getX() {
        return x;
    }

    public void setX(BigInteger x) {
        this.x = x;
    }

    @Column(name = "Y")
    public BigInteger getY() {
        return y;
    }

    public void setY(BigInteger y) {
        this.y = y;
    }

    @Column(name = "AUTHENTICATION_NUMBER")
    public BigInteger getAuthenticationNumber() {
        return authenticationNumber;
    }

    public void setAuthenticationNumber(BigInteger authenticationNumber) {
        this.authenticationNumber = authenticationNumber;
    }
}
